<?php
echo $header;
echo $column_left;
echo $column_right;
$width_content = '100%';
if (($column_left) && ($column_right)) {
    $width_content = '48%';
} elseif (($column_left) || ($column_right)) {
    $width_content = '74%';
}
$style = '';
if ($column_left) {
    $style .= '; margin-left:1%';
}
if ($column_right) {
    $style .= '; margin-right:1%';
}
?>
<div class="content" style="width:<?php echo $width_content . $style; ?>"><?php echo $content_top; ?>
    <div class="breadcrumb">
        <?php foreach ($breadcrumbs as $breadcrumb) { ?>
            <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
        <?php } ?>
    </div>
    <ul data-role="listview" data-divider-theme="a">
        <li data-role="list-divider"><h1><?php echo $heading_title; ?></h1></li>
    </ul><br />
    <ul data-role="listview" data-divider-theme="a" data-inset="true">
        <li><?php echo $text_total; ?><b> <?php echo $total; ?></b>.</li>
    </ul><br />
    <ul data-role="listview" data-divider-theme="a" class="list">
        <?php if ($transactions) { ?>
            <?php foreach ($transactions as $transaction) { ?>
                <li>
                    <div data-role="collapsible" data-collapsed="false" data-content-theme="a">
                        <h3><?php echo $column_date_added; ?>: <?php echo $transaction['date_added']; ?></h3>
                        <ul data-role="listview" data-divider-theme="a" data-inset="true">
                            <li><?php echo $column_description; ?>: <?php echo $transaction['description']; ?></li>
                            <li><?php echo $column_amount; ?>: <?php echo $transaction['amount']; ?></li>
                        </ul>
                    </div>
                </li>
            <?php } ?>
        <?php } else { ?>
            <li><?php echo $text_empty; ?></li>
        <?php } ?>
    </ul><br />
    <div class="pagination"><?php echo $pagination; ?></div>
    <div class="buttons">
        <div class="right"><a data-role="button" href="<?php echo $continue; ?>" class="button"><span><?php echo $button_continue; ?></span></a></div>
    </div>
    <?php echo $content_bottom; ?>
</div>
<?php echo $footer; ?>